include ../Makefile.inc

	#We use the common implicit rule is for the construction of .o (object) files out of .c (source files).
all:	spectral_div

spectral_div:	spectral_div_main.o  
	cd ../common ; make
	gcc $(CFLAGS) -o spectral_div spectral_div_main.o ../common/modularity_mat.o ../common/sparse_matrix.o ../common/improve_div.o  ../common/spectral_div.o -lm

mtrace:   spectral_div_main.o
	cd ../common ; make
	gcc $(CFLAGS) $(MTRACEFLAGS)	 spectral_div spectral_div_main.o ../common/modularity_mat.o ../common/sparse_matrix.o ../common/improve_div.o  ../common/spectral_div.o -lm

clean:
	rm *.o ../common/*.o spectral_div
